home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / NONPORT.ZIP / WTABSIZE.C < prev   
Text File  |  1992-11-21  |  1KB  |  49 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef wtabsize
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_wtabsize = "$Header: c:/curses/nonport/RCS/wtabsize.c%v 2.0 1992/11/15 03:18:32 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   wtabsize()   - Set tab size in window
  15.  
  16.   X/Open Description:
  17.        Not available.
  18.  
  19.   PDCurses Description:
  20.        This routine sets the tabsize for stdscr and returns the previous
  21.        tab size settings.
  22.  
  23.   X/Open Return Value:
  24.        This routine returns the previous tab size setting upon success
  25.        otherwise, it returns ERR.
  26.  
  27.   PDCurses Errors:
  28.        
  29.  
  30.   Portability:
  31.        PDCurses        int wtabsize( WINDOW* win, int ts );
  32.        X/Open Dec '88  int wtabsize( WINDOW* win, int ts );
  33.        SysV Curses     
  34.        BSD Curses      
  35.  
  36. **man-end**********************************************************************/
  37.  
  38. int    wtabsize(WINDOW *win, int ts)
  39. {
  40.        int     origval;
  41.  
  42.        if (win == (WINDOW *)NULL)
  43.                return( ERR );
  44.  
  45.        origval = win->_tabsize;
  46.        win->_tabsize = ts;
  47.        return( origval );
  48. }
  49.